import pymysql

db=pymysql.connect(host='114.115.248.128',user='root',password='Esxi0000.',db='ssh')
cursor = db.cursor()
cursor.execute("select * from sshhost")
result = cursor.fetchall()
for row in result:
    ip = row[0]
    port = row[1]
    user = row[2]
    passwd = row[3]
    size = row[4]
    timeout = row[5]
    print(ip,port,user,passwd,size,timeout)